<?php if (!defined('SHUIPF_VERSION')) exit(); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>
        <if condition=" isset($SEO['title']) && !empty($SEO['title']) ">{$SEO['title']}</if>{$SEO['site_title']}
    </title>
    <meta name="description" content="{$SEO['description']}"/>
    <meta name="keywords" content="{$SEO['keyword']}"/>


    <link href="/statics/sdcms/lib/css/base.css" rel="stylesheet" type="text/css" />
    <link href="/statics/sdcms/css/public.css" rel="stylesheet" type="text/css" />
    <link href="/statics/sdcms/css/home.css" rel="stylesheet" type="text/css" />
    <script>var webroot="/";</script>
    <script src="/statics/sdcms/lib/js/jquery.js"></script>
    <script src="/statics/sdcms/lib/js/jquery-migrate-1.1.0.min.js"></script>
    <script src="/statics/sdcms/lib/tips/jquery.tips.js"></script>
    <script src="/statics/sdcms/lib/js/base.js"></script>
    <script src="/statics/sdcms/lib/validator/jquery.validator.js"></script>
    <script src="/statics/sdcms/lib/validator/zh_CN.js"></script>
    <script src="/statics/sdcms/js/sdcms.js"></script>
    <script src="/statics/sdcms/js/jquery.slidy.min.js"></script>
    <script src="/statics/sdcms/js/home.js"></script>
</head>

<body>

<template file="Content/sdcms_head.php"/>

<div id="position">您所在的位置：<a href="{$config_siteurl}">首页</a></div>
<div class="w980 mt10 mc">
    <div class="l b home_flash">
        <ul id="flash">


            <content action="lists" catid="1" order="id DESC" num="4"  >
                <volist name="data" id="vo">


                    <li>
                        <div class="pic">
                            <img src="{$vo.thumb}" width="300" height="210" />
                            <div class="title">{$vo.title}</div>
                            <div class="intro">{$vo.description|str_cut=###,35}...</div>
                        </div>
                    </li>


                </volist>
            </content>

        </ul>
    </div>

    <div class="l b" id="topnew">

        <content action="lists" catid="1" order="id DESC" num="4" where="posid=0" ><volist name="data" id="rs">

                <div class="title"><a href="{$rs[link]}" title="{$rs[title]}">{$rs[title]}</a></div>
                <div class="intro">{$rs[description]|str_cut=###,35}</div>

            </volist></content>




    </div>

    <div class="l b" id="tophot">
        <div class="subject">今日热点</div>
        <ul class="toplist">
            <content action="lists" catid="1" order="views desc,id DESC" num="10" where="posid=0"  ><volist name="data" id="rs">

                    <li><a href="{$rs[link]}" title="{$rs[title]}">{$rs[title]|str_cut=###,18}</a></li>

                </volist></content>


        </ul>
    </div>
</div>

<div class="w978 mt10 mc b">
    <div class="subject">热门图片</div>
    <div class="p10" id="topphoto">
        <div class="ileft"><img src="/statics/sdcms/images/arr_left.gif" width="32" height="43" /></div>
        <div class="ilist imglist">
            <ul>


                <content action="lists"  catid="5"  order="views desc,id DESC" num="10" where=" thumb!='' "  ><volist name="data" id="rs">

                  <li>
                      <a href="{$rs[link]}" title="{$rs[title]}"><img src="{$rs[thumb]}" width="140" height="100" alt="{$rs[title]}" /></a>
                      <span><a href="{$rs[link]}" title="{$rs[title]}">{$rs[title]|str_cut=###,18}</a></span>
                  </li>

                </volist></content>



            </ul>
            <div class="c"></div>
        </div>
        <div class="iright"><img src="/statics/sdcms/images/arr_right.gif" width="32" height="43" /></div>
    </div>
</div>

<div class="w980 mc" id="container">
    <div class="left">




        <content action="category" catid="0"  order="listorder ASC" num="4" ><volist name="data" id="rp">



                <div class="block b">
                    <div class="subject"><span><a href="{$rp[link]}">更多>></a></span><a href="{$rp[link]}">{$rp[catename]}</a></div>


                    <content action="lists" catid="$rp['catid']" where=" thumb!=''  "  order="id DESC" num="1"><volist name="data" id="ra">

                            <div class="toppic">
                                <img src="{$ra[pic]}" width="100" height="70" /><a href="{$ra[link]}" title="{$ra[title]}" >
                                 {$rs[title]|str_cut=###,18}</a>
                                {$rs[description]|str_cut=###,54}
                            </div>

                        </volist></content>




                    <content action="lists" catid="$rp['catid']"  order="id DESC" num="2"><volist name="data" id="rs">
                            <ul class="topnew">
                                <li><span>[{$vo.updatetime|date="m-d",###}]</span>·<a href="{$rs[link]}" title="{$rs[title]}"  {$rs[style]}>
                                        {$rs[title]|str_cut=###,18}</a>
                                </li>
                            </ul>
                        </volist></content>




                </div>


            </volist></content>







    </div>
    <div class="right">
        <div class="b mt10">
            <div class="subject">最新评论</div>
            <ul class="comment">

                <comment action="lists" catid="1" num="2" ><volist name="data" id="rs">
                        <li>
                            <img src="/upfile/avatar/{$rs[avatar]}/normal.jpg" width="48" height="48" />
                            <span>{$rs[username]}：</span>
                            <a href="/plug/comment.php?id={$rs[contentid]}">
                                {$rs[content]|str_cut=###,48}
                                </a>
                        </li>

                    </volist></comment>


            </ul>
            <span class="c"></span>
        </div>

        <div class="b mt10">
            <div class="subject">最新投票</div>
            {sdcms:rs top="1" field="id,title,votetype,voteitem,voteresult" table="sd_expand_vote" where="islock=1"}
            {dim voteitem_arr:voteitem_arr=split($rs[voteitem],",")}
            <form class="form_vote" method="post">
                <ul class="vote">
                    <li class="title">{$rs[title]}</li>
                    <input name="id" id="voteid" type="hidden" value="{$rs[id]}" />
                    {for i=0 to ubound(voteitem_arr)}
                    <li><input type="{if $rs[votetype]=1}radio{else}checkbox{/if}" name="t1" value="{i}" {if i=0} data-rule="投票项目:checked;"{/if}>{voteitem_arr(i)}</li>
                    {/for}
                    <li class="bnt"><input type="image" src="/statics/sdcms/images/bnt_vote.gif" />
                        <a href="{webroot}plug/vote.asp?id={$rs[id]}"><img src="/statics/sdcms/images/bnt_view.gif" width="52" height="26" /></a></li>
                </ul>
            </form>
            {/sdcms:rs}
        </div>


        <div class="b mt10">
            <div class="subject"><a href="plug/tags.asp">标签</a></div>
            <div class="toptag">

                <tags action="top"  num="12"  order="hits DESC"><volist name="data" id="vo">
                        <a title="{$vo.tag}" href="{$vo.url}">{$vo.tag}</a>
                    </volist></tags>



                <span class="c"></span>
            </div>
        </div>

        <div class="b mt10">
            <div class="subject">日期归档</div>
            <ul class="toplist">


                {sdcms:rs table="sd_content" top="10" field="year(createdate) as postyear,month(createdate) as postmonth,count(1) as [count]" group="year(createdate),month(createdate)" where="islock=1" order="year(createdate) desc,month(createdate) desc"}
                <li><a href="{webroot}plug/date.asp?logdate={$rs[postyear]}-{$rs[postmonth]}">{$rs[postyear]}-{right("0"&$rs[postmonth],2)} [{$rs[count]}]</a></li>
                {/sdcms:rs}



            </ul>
        </div>
    </div>
</div>

<div class="w978 mc mt10 b">
    <div class="subject">友情链接</div>
    <div class="link">
        <ul>
            {sdcms:rs top="0" table="sd_expand_link" where="islock=1 and islogo=1" order="id desc"}
            {rs:eof}<li>没有资料</li>{/rs:eof}
            <li><a href="{$rs[weburl]}" target="_blank"><img src="{$rs[weblogo]}" width="88" height="31" border="0" alt="{$rs[webname]}" /></a></li>
            {/sdcms:rs}
        </ul>
        <ul>
            {sdcms:rs top="0" table="sd_expand_link" where="islock=1 and islogo=0" order="id desc"}
            {rs:eof}<li>没有资料</li>{/rs:eof}
            <li><a href="{$rs[weburl]}" target="_blank">{sdcms.cutstr($rs[webname],20,0)}</a></li>
            {/sdcms:rs}
        </ul>
    </div>
</div>

<template file="Content/sdcms_foot.php"/>